package com.situ.day06;

import java.util.Scanner;

public class Number {
	private int num1;
	private int num2;

	public Number(int num1, int num2) {
		
		this.num1 = num1;
		this.num2 = num2;
	}

	//单一职能原则
	public int add(int num1, int num2) {
		return num1 + num2;
	}

	public int sub(int num1, int num2) {
		return num1 - num2;
	}

	public int mul(int num1, int num2) {
		return num1 * num2;
	}

	public int div(int num1, int num2) {
		return num1 / num2;
	}
	
}
